package com.sudo.rpc.api.service;

import com.sudo.rpc.api.model.CallTask;
import com.sudo.rpc.api.model.RegistryServer;

import java.rmi.Remote;
import java.rmi.RemoteException;

public interface RmiSetServerService extends Remote {
    void pushServer(RegistryServer registryServer) throws RemoteException;

    Object pullServer(String ip, Integer port) throws RemoteException;

    Object callServer(CallTask callTask) throws RemoteException;
}
